﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Templates/Common_MasterPage.master" AutoEventWireup="true" CodeFile="ChangePass.aspx.cs" Inherits="ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style>
        .changepass {
    width:50%;
    margin:0px auto;
    text-align:center;
    margin-top:60px;
    color:white;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="changepass">        
    <table style="color:darkblue;font:normal !important">
        <tr>
            <td>
                <asp:Label runat="server" ID="labelchange" Text="change pass"></asp:Label>
            </td>
        </tr>        
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Current Password:" CssClass="BlackText" Width="200px"></asp:Label>
                <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="Red"
                    Display="None" ControlToValidate="TextBoxPassword" ErrorMessage="Enter password.">password</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Display="None"
                    ControlToValidate="TextBoxPassword" ErrorMessage="Password should be 4 to 15 letters & Space not allowed"
                    ValidationExpression="\S{4,15}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="New Password:" CssClass="BlackText" Width="200px"></asp:Label>
                <asp:TextBox ID="NewPass" runat="server" TextMode="Password" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ForeColor="Red"
                    Display="None" ControlToValidate="NewPass" ErrorMessage="Enter password.">password</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" Display="None"
                    ControlToValidate="NewPass" ErrorMessage="Password should be 4 to 15 letters & Space not allowed"
                    ValidationExpression="\S{4,15}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Retype New Password:" CssClass="BlackText"
                    Width="200px"></asp:Label>
                <asp:TextBox ID="retypenewpass" runat="server" TextMode="Password" Width="250px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ForeColor="Red"
                    Display="None" ControlToValidate="retypenewpass" ErrorMessage="Retype password.">Retype password</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CVPassword" runat="server" Display="None" ControlToValidate="retypenewpass"
                    ErrorMessage="Re-type Password doesn't match" ControlToCompare="NewPass"></asp:CompareValidator>
                <asp:RegularExpressionValidator ID="revPWDRange" runat="server" Display="None" ControlToValidate="retypenewpass"
                    ErrorMessage="Password should be 4 to 15 letters & Space not allowed" ValidationExpression="\S{4,15}"></asp:RegularExpressionValidator>
            </td>
        </tr>        
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align:Center">
                <asp:Button ID="changepass" runat="server" Text="Change Pass" OnClick="changepass_Click"
                    Width="170px" CssClass="flashit" Font-Bold="true" Font-Size="14pt" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

